package com.zhixun.mobile.modules.jiujiudevice.device.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.boxin.framework.base.utils.DateUtils;
import com.phoenix.common.lang.DateUtil;

/**
 * 
 * @author sxh
 * @date 2018年10月23日 上午9:47:53
 * @function
 *           <p>
 *           硬件墨盒使用情况
 *           </p>
 *
 */
public class InkModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** 设备sn */
	private String sn;
	/** 设备使用状态 0-关闭 1-开启 */
	private String snStatus;
	/** 设备的加墨状态 0-关闭，1-开启 */
	private String inkStatus;
	/** 消费总金额 */
	private Double totalMoney;
	/**数据发送时间*/
	private Date createTime;
	
	/**获得当前的日期格式化*/
	private String currentTime;
	/** 存储各路需要的数据 */
	private List<DataModel> datalist = new ArrayList<DataModel>();
     
	public InkModel() {
		// TODO Auto-generated constructor stub
		this.createTime = new Date();
	}
   
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getSnStatus() {
		return snStatus;
	}

	public void setSnStatus(String snStatus) {
		this.snStatus = snStatus;
	}

	public String getInkStatus() {
		return inkStatus;
	}

	public void setInkStatus(String inkStatus) {
		this.inkStatus = inkStatus;
	}

	public List<DataModel> getDatalist() {
		return datalist;
	}

	public void setDatalist(List<DataModel> datalist) {
		this.datalist = datalist;
	}
	public Double getTotalMoney() {
		return totalMoney;
	}
	public void setTotalMoney(Double totalMoney) {
		this.totalMoney = totalMoney;
	}
	
	public String getCurrentTime() {
		return com.thinkgem.jeesite.common.utils.DateUtils.formatDate(this.createTime, "HH:mm:ss");
	}

	@Override
	public String toString() {
		return "InkModel [sn=" + sn + ", snStatus=" + snStatus + ", inkStatus=" + inkStatus + ", totalMoney="
				+ totalMoney +  ", datalist=" + datalist + "]";
	}
	
}
